package zhuyun.code.launcheractivity.view.widget.component

import android.content.Context
import android.os.Build
import android.view.animation.Interpolator

import android.widget.Scroller
import zhuyun.code.launcheractivity.model.Constants

/**
 * @author: Administrator
 * @date: 2021/11/19
 */
class BannerScroller(val context: Context, private val interpolator: Interpolator?, private val flywheel:Boolean): Scroller(context,interpolator,flywheel) {
    var mDuration = Constants.DURATION
    constructor(context: Context,interpolator: Interpolator?):this(context,interpolator,context.applicationInfo.targetSdkVersion >= Build.VERSION_CODES.HONEYCOMB)
    constructor(context: Context):this(context,null)

    override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int, duration: Int) {
        super.startScroll(startX, startY, dx, dy, mDuration)
    }

    override fun startScroll(startX: Int, startY: Int, dx: Int, dy: Int) {
        super.startScroll(startX, startY, dx, dy, mDuration)
    }


}